import 'dart:convert';

MiniProfile miniProfileFromJson(String str) =>
    MiniProfile.fromJson(json.decode(str));

String miniProfileToJson(MiniProfile data) => json.encode(data.toJson());

class MiniProfile {
  MiniProfile({
    this.firstName,
    this.lastName,
    this.email,
    this.gender,
    this.birthday,
  });

  String? firstName;
  String? lastName;
  String? email;
  String? gender;
  String? birthday;

  factory MiniProfile.fromJson(Map<String, dynamic> json) => MiniProfile(
      firstName: json["firstName"],
      lastName: json["lastName"],
      email: json["email"],
      gender: json["gender"],
      birthday: json["birthday"]);

  Map<String, dynamic> toJson() => {
        "firstName": firstName,
        "lastName": lastName,
        "email": email,
        "gender": gender,
        "birthday": birthday
      };
}
